package com.example.pages;

import org.openqa.selenium.By;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.support.FindBy;

/**
 * Created with IntelliJ IDEA.
 * User: kzv
 * Date: 27.02.13
 * Time: 13:58
 * To change this template use File | Settings | File Templates.
 */
public class UserManagementPage extends InternalPage {
    @FindBy(xpath = "//*[@href=\"http://127.0.0.1/php4dvd/?go=users\"]/parent::li")
    public WebElement selectedUserManagementLink;
    public Boolean isOnManagementPage() {
        return selectedUserManagementLink.getAttribute("class").equals("selected");
        //driver.findElement(By.xpath("//*[@href=\"http://127.0.0.1/php4dvd/?go=users\"]/parent::li")).getAttribute("class").equals("selected");
    }


}
